package com.waitingresult.ljt.qo;

import com.waitingresult.common.base.domain.qo.BaseQo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
/**
 * All right reserved,Designed By WangShuai
 *
 * @author : WangShuai
 * @version : V1.0
 * @ClassName : BaseQo
 * @Description :
 * @date : 2021/11/23 23:41
 */
@Data
public class BlackQo extends BaseQo {


    /**
     * 租户号
     */
    @ApiModelProperty(value = "租户号")
    private Long tenantId;

    /**
     * 线索人
     */
    @ApiModelProperty(value = "线索人")
    private Long userId;

    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称")
    @NotNull(groups = Create.class, message = "必须填写客户名称!")
    private String name;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    @NotNull(groups = Create.class, message = "必须填写手机号码!")
    private String mobile;

    @Null(groups = Query.class, message = "不允许通过拉黑原因查找!")
    @NotNull(groups = Create.class, message = "必须填写拉黑原因!")
    @ApiModelProperty(value = "拉黑原因")
    private String reason;
}
